]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/keyboard: Explicitly initialize ornament
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jul 2023 16:50:30 +0000 (18:50 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 1 Aug 2023 17:32:53 +0000 (17:32 +0000)
Layout items use the ornament to indicate the active layout, so
their ornament should always be NONE or DOT.

The default is about to change to HIDDEN, so explicitly initialize
the ornament to NONE to keep the current radio item appearance.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2843>

js/ui/status/keyboard.js

index bbdf22597ad1adb6ce2c5428b7a9140118b4ce3a..b222574d2fbd0d5512d265f8d8688369f3822adc 100644 (file)
@@ -28,6 +28,8 @@ class LayoutMenuItem extends PopupMenu.PopupBaseMenuItem {
     _init(displayName, shortName) {
         super._init();
 
+        this.setOrnament(PopupMenu.Ornament.NONE);
+
         this.label = new St.Label({
             text: displayName,
             x_expand: true,